package com.mind.adjust.service.impl;



import com.mind.adjust.mapper.AjRuleViewGroupMapper;
import com.mind.adjust.service.AjRuleViewGroupService;

import com.mind.system.domain.AjRuleViewGroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * (AjRuleViewGroup)表服务实现类
 *
 * @author makejava
 * @since 2025-05-12 10:57:14
 */
@Service("ajViewGroupService")
public class AjRuleViewGroupServiceImpl implements AjRuleViewGroupService {
    @Autowired
    private AjRuleViewGroupMapper ajRuleViewGroupMapper;

    /**
     * 查询信息集合
     *
     * @param AjRuleViewGroup 信息
     * @return 信息集合
     */
    @Override
    public List<AjRuleViewGroup> selectAjViewGroupList(AjRuleViewGroup AjRuleViewGroup) {
        return ajRuleViewGroupMapper.selectAjViewGroupList(AjRuleViewGroup);
    }

    /**
     * 通过ID查询信息
     *
     * @param ajViewGroupId ID
     * @return 角色对象信息
     */
    @Override
    public AjRuleViewGroup selectAjViewGroupById(Long ajViewGroupId) {
        return ajRuleViewGroupMapper.selectAjViewGroupById(ajViewGroupId);
    }

    /**
     * 删除信息
     *
     * @param ajViewGroupId ID
     * @return 结果
     */
    @Override
    public int deleteAjViewGroupById(Long ajViewGroupId) {
        return ajRuleViewGroupMapper.deleteAjViewGroupById(ajViewGroupId);
    }

    /**
     * 批量删除信息
     *
     * @param ajViewGroupIds 需要删除的ID
     * @return 结果
     */
    @Override
    public int deleteAjViewGroupByIds(Long[] ajViewGroupIds) {
        return ajRuleViewGroupMapper.deleteAjViewGroupByIds(ajViewGroupIds);
    }

    /**
     * 新增保存信息
     *
     * @param AjRuleViewGroup 信息
     * @return 结果
     */
    @Override
    public int insertAjViewGroup(AjRuleViewGroup AjRuleViewGroup) {
        return ajRuleViewGroupMapper.insertAjViewGroup(AjRuleViewGroup);
    }

    /**
     * 修改保存信息
     *
     * @param AjRuleViewGroup 信息
     * @return 结果
     */
    @Override
    public int updateAjViewGroup(AjRuleViewGroup AjRuleViewGroup) {
        return ajRuleViewGroupMapper.updateAjViewGroup(AjRuleViewGroup);
    }
}
